std::scalbn, std::scalbln
From Cppreference
| C++ Standard Library | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Numerics library | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Defined in header
<cmath> | ||
| float scalbn( float x, int exp );
| (C++0x feature) | |
| double scalbn( double x, int exp );
| (C++0x feature) | |
| long double scalbn( long double x, int exp );
| (C++0x feature) | |
| float scalbln( float x, long exp );
| (C++0x feature) | |
| double scalbln( double x, long exp );
| (C++0x feature) | |
| long double scalbln( long double x, long exp );
| (C++0x feature) | |
Multiplies an floating point value x by FLT_RADIX raised to power exp. On binary system it is equivalent to ldexp()
Parameters
| arg | - | floating point value |
| exp | - | integer value |
Return value
returns x×FLT_RADIXexp
If the result is too large for the underlying type, range error occurs and HUGE_VAL is returned.
See also
| decomposes a number into significand and a power of 2 (function) | |
| multiplies a number by 2 raised to a power (function) | |